package p270jp.pxv.android.viewholder;

import android.view.ViewGroup;
import p134ei.AnalyticsAction;
import p521th.FlexibleItemAdapterSolidItem;
import p521th.SolidItemViewHolder;
import p671zc.CompositeDisposable;
import p677zi.PixivImageLoader;

/* renamed from: jp.pxv.android.viewholder.PopularLiveListInFollowLivesSolidItem */
/* loaded from: classes2.dex */
public class PopularLiveListInFollowLivesSolidItem extends FlexibleItemAdapterSolidItem {
    private CompositeDisposable compositeDisposable = new CompositeDisposable();
    private int numberOfBaseItems;
    private AnalyticsAction openViaAction;
    private final PixivImageLoader pixivImageLoader;

    public PopularLiveListInFollowLivesSolidItem(int i, AnalyticsAction aVar, PixivImageLoader aVar2) {
        this.numberOfBaseItems = i;
        this.openViaAction = aVar;
        this.pixivImageLoader = aVar2;
    }

    @Override // p521th.FlexibleItemAdapterSolidItem
    public SolidItemViewHolder onCreateViewHolder(ViewGroup viewGroup) {
        return PopularLiveListViewHolder.createViewHolder(viewGroup, this.compositeDisposable, this.openViaAction, this.pixivImageLoader);
    }

    @Override // p521th.FlexibleItemAdapterSolidItem
    public void onDetachedFromRecyclerView() {
        super.onDetachedFromRecyclerView();
        this.compositeDisposable.m80f();
    }

    @Override // p521th.FlexibleItemAdapterSolidItem
    public boolean shouldBeInserted(int i, int i2, int i3, int i4) {
        return i == this.numberOfBaseItems && i3 == 0;
    }
}
